package com.demo.web;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/item")
public class ItemController {
    @PostMapping
    public String addItem(){
        System.out.println("addItem");
        return "addItem";
    }
    @GetMapping
    public String getItem(){
        System.out.println("getItem");
        return "getItem";
    }
    @PutMapping
    public String updateItem(){
        System.out.println("updateItem");
        return "updateItem";
    }
    @DeleteMapping
    public String deleteItem(){
        System.out.println("deleteItem");
        return "deleteItem";
    }
}
